<?php

namespace service\admin;

use service\BaseService;


class PrebookTimeService extends BaseService
{
    public static $model = 'model\PrebookTimeModel';

    public static function addAll($hospitalId,$dataList){
        self::$model::where(['hospital_id'=>$hospitalId])->delete();
        return self::$model::insertAll($dataList);
    }

}